<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>拒绝签收_{$webname}</title>
<!--公共样式开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/css/reset.css">
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/css/common.css">
<!--公共样式结束-->
<!--私有样式开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/css/page_order.css">
<!--私有样式结束-->
<!--FontAwesome开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/plugins/FontAwesome/css/font-awesome.min.css">
<!--FontAwesome结束-->
<!--核心JS开始-->
<script src="{$NOW_THEME_URL}/Assets/js/jquery.min.js"></script>
<script src="__PUBLIC__/Js/jquery-migrate-1.2.1.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/Plugins/artDialog/jquery.artdialog.js?skin=bootstrap"></script>
<script type="text/javascript" src="__PUBLIC__/Plugins/artDialog/plugins/iframeTools.js"></script>
<!--核心JS结束-->
<script type="text/javascript">
	$(function(){
		$('#goBack').on('click',function(){
			window.history.back();
		});
		
		/*右侧导航点击事件*/
		$('.hb_right').click(function(){
			$(".wrapper").toggleClass("a");
			$(".nav_box").toggleClass("b");
		});
		
		/*右侧导航二级*/
		$('.erji').click(function(){
			$(this).find("ul").toggleClass("c");
		});
	});
</script>
<style type="text/css">
#relationOutlet{
	line-height:40px;
}
#relationOutlet div span{
	font-size:14px;
	font-weight:bold;
}
#relationOutlet input , #relationOutlet option{
	width:100px;
	height:25px;
	line-height:25px;
}
#relationOutlet em{
	font-style:normal;
	font-size:16px;
}
#relationOutlet .fenp_b{
	width:200px;
	height:30px;
	line-height:30px;
	border:none;
	background:#21AB38;
	color:#FFF;
	text-align:center;
	font-size:16px;
	border-radius:3px;
	margin-top:20px;
}

</style>
</head>
<body>
<!-- 头部开始-->
<include file="Public:header"/>
<!-- 头部结束-->
<!--主体开始-->
<div id="pageHome">
	<!--主体盒子开始-->
    <div id="wrapper" class="wrapper radius_5 bg_white">
		<form id="relationOutlet" >
	
			<div><span>订单地址:</span>{$row.address}</div>
			<input type="hidden" name="id" value="{$row.id}">
			<textarea name="refused" rows="3" placeholder="请填写客户拒签原因"></textarea>
				
			<div><input class="fenp_b" type="button" id="confirm" value="拒绝签收" /></div>
		</form>

<script>
function submitForm(){
	
	var data = $('#relationOutlet').serialize();
	$.post("{:U('Order/order_refused')}",data,function(data){
		if(data.status == 1){
			alert('拒绝签收成功');
			var url = "{:U('Order/order_index')}";
			window.location.href=url;
		}else{
			alert(data.info);
		}
	});
}

function changeOutlet(){
	
	var text = $('#outletid').find("option:selected").text();
	$('#outname').val(text);
}


$(function(){
	
	$('#confirm').on("click",function(){
		submitForm();
	});
});
</script>

    </div>
    <!--主体盒子结束 -->
    <!--导航盒子开始-->
    <include file="Public:menu" />
    <!--导航盒子结束-->
</div>
<!--主体结束-->
</body>
</html>